﻿function keypress(evt) {

    var charCode = (evt.which) ? evt.which : event.keyCode;
    if (charCode != 46 && char != 45 && charCode > 31
            && (charCode < 48 || charCode > 57))
        return false;

    return true;
 
}